package com.rw.test.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 前台交互通用回复对象
 * @param <T> 数据的泛型
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResultVO<T> {
    private int code;
    private String msg;
    private T data;

    public ResultVO(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
